import type { IllnessTime } from "@/enums";
import { flagOptions, timeOptions, statusOptions } from "@/services/constants";
import { OrderType } from "@/enums";
// 获取患病时间
export const getIllnessTimeText = (time: IllnessTime) =>
  timeOptions.find((item) => item.value === time)?.label;
// 获取是否就诊
export const getConsultFlagText = (flag: 0 | 1) =>
  flagOptions.find((item) => item.value === flag)?.label;

// 获取就诊状态
export const getStatusText = (status?: OrderType) =>
  statusOptions.find((item) => item.val === status)?.name;
